package huawei;
/*
* @Author: wanghongfucoder
* @Date:   2017-06-26 15:27:04
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-06-26 15:27:20
*/

import java.util.Scanner;
 
 
public class CharacterSort {
 
    /**
     * @param args
     */
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        while(sc.hasNext()){
            String str =sc.nextLine();
            char[] cs =str.toCharArray();
            StringBuffer sb = new StringBuffer();
             
            for(int i=0;i<26;i++)
            {
                char c = (char)(i+'A');
                for(int j = 0;j<str.length();j++)
                {
                    if(cs[j]==c||cs[j]==(char)(c+32))
                    {
                        sb.append(cs[j]);
                    }
                         
                }
            }
            for(int k=0; k<str.length(); k++)
            {
                if(!(cs[k]>='A'&&cs[k]<='Z'||cs[k]>='a'&&cs[k]<='z'))
                    {
                    sb.insert(k, cs[k]);
                     
                    }
            }
            System.out.println(sb);
        }
         
    }
}